#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStackedWidget>
#include <QVBoxLayout>
#include "debugform.h"
#include "src/device/Handle/HandleHelper.h"
#include "src/UI/childWidget/Charts/HorBarChart.h"
#include "src/UI/childWidget/Charts/LineChart.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();


    void slot_recvHandler(ST_HD_T *);
    void initUI();
    void initMembers();

private slots:
    void slot_updateUI();
    void slot_changeChart(int);

    void on_start_clicked();

private:
    Ui::MainWindow *ui;
    QStackedWidget *_stack;

    ST_HD_T       d_handler;

    LineChart    *lineChart;
    HorBarChart  *horBarChart;

    DebugForm    *controlCenter;
    void updateRobotPosAndAxle(RobotPos pos);
};

#endif // MAINWINDOW_H
